package nl.tue.bsdddump;

import java.util.HashSet;

import no.catenda.peregrine.model.objects.json.IfdConcept;

public class ConceptSearchQueryResult {
	private String searchTerm = "";
	private HashSet<IfdConcept> searchResult = new HashSet<IfdConcept>();
	private int timestamp;
	private String serverMessage ;
	public boolean isEmpty()
	{
		return searchResult.size()>0;
	}
	
	public ConceptSearchQueryResult(){
		
	}

	public String getSearchTerm() {
		return searchTerm;
	}

	public void setSearchTerm(String searchTerm) {
		this.searchTerm = searchTerm;
	}

	public HashSet<IfdConcept> getSearchResult() {
		return searchResult;
	}

	public void setSearchResult(HashSet<IfdConcept> searchResult) {
		this.searchResult = searchResult;
	}
	
	public void addSearchResult(IfdConcept concept) {
		this.searchResult.add(concept);
	}

	public int getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(int timestamp) {
		this.timestamp = timestamp;
	}

	public String getServerMessage() {
		return serverMessage;
	}

	public void setServerMessage(String serverMessage) {
		this.serverMessage = serverMessage;
	}
	
}
